package secondriver.springsubway.demo.job;

import org.quartz.JobExecutionContext;
import org.quartz.JobExecutionException;
import org.springframework.scheduling.quartz.QuartzJobBean;

/**
 * @author secondriver
 * @created 2015-4-28 上午10:59:53
 * 
 */
public class MyJob1 extends QuartzJobBean {

	private int timeout;

	public int getTimeout() {
		return timeout;
	}

	public void setTimeout(int timeout) {
		this.timeout = timeout;
	}

	@Override
	protected void executeInternal(JobExecutionContext context)
			throws JobExecutionException {
		System.out.println(this.getClass().getCanonicalName()
				+ " job execution timeout property is " + this.getTimeout()
				+ " threadId=" + Thread.currentThread().getId());
	}

}
